﻿#region Using directives

using System;
using System.ComponentModel;
using System.Collections.Generic;

#endregion

namespace NetROS.Tiers.Entities
{	
	///<summary>
	/// An object representation of the 'tblIzvadak' table. [No description found the database]	
	///</summary>
	/// <remarks>
	/// This file is generated once and will never be overwritten.
	/// </remarks>	
	[Serializable]
	[CLSCompliant(true)]
	public partial class Izvadak : IzvadakBase
	{		
		#region Constructors

		///<summary>
		/// Creates a new <see cref="Izvadak"/> instance.
		///</summary>
		public Izvadak():base(){}	
		
		#endregion
	}
  
    ///<summary>
    /// Proxy klasa za sql izvadkle lista
    ///</summary>
    public class PretvoreneStavkeIzvatkaList : List<PretvoreneStavkeIzvatka>
    {

    }


    ///<summary>
    /// Proxy klasa za sql izvadke
    ///</summary>
    public class PretvoreneStavkeIzvatka : IComparable<PretvoreneStavkeIzvatka>
    {
        private string _vlasnikziroracun;
        private decimal _dug;
        private decimal _pot;
        private string _vlasnik;
        private string _vjerovnikaziroracun;
        private string _vjerovnikNaziv;
        private string _model;
        private string _pozivnabr;
        private string _veznaoznaka;
        private string _opis;
        private DateTime _datumvalute;
        private string _brojzareklamaciju;
        private int _brojizvatka;
        private int? _IDKlijent;
        private int _RedBrStavke;

        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public int? IDKlijent
        {
            get { return _IDKlijent; }
            set { _IDKlijent = value; }
        }

        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public int RedBrStavke
        {
            get { return _RedBrStavke; }
            set { _RedBrStavke = value; }
        }

        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public decimal Dug
        {
            get { return _dug; }
            set { _dug = value; }
        }
        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public string Vlasnik
        {
            get { return _vlasnik; }
            set { _vlasnik = value; }
        }
        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public decimal Pot
        {
            get { return _pot; }
            set { _pot = value; }
        }

        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public string Vlasnikziroracun
        {
            get { return _vlasnikziroracun; }
            set { _vlasnikziroracun = value; }
        }

        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public string VjerovnikDuznikZiroracun
        {
            get { return _vjerovnikaziroracun; }
            set { _vjerovnikaziroracun = value; }
        }

        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public string VjerovnikDuznikNaziv
        {
            get { return _vjerovnikNaziv; }
            set { _vjerovnikNaziv = value; }
        }

        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public DateTime DatumTransakcije
        {
            get { return _datumvalute; }
            set { _datumvalute = value; }
        }
        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public string Model
        {
            get { return _model; }
            set { _model = value; }
        }
        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public string Pozivnabr
        {
            get { return _pozivnabr; }
            set { _pozivnabr = value; }
        }
        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public string Veznaoznaka
        {
            get { return _veznaoznaka; }
            set { _veznaoznaka = value; }
        }

        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public string Opis
        {
            get { return _opis; }
            set { _opis = value; }
        }
        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public string BrojZaReklamaciju
        {
            get { return _brojzareklamaciju; }
            set { _brojzareklamaciju = value; }
        }

        [DescriptionAttribute(""), Bindable(BindableSupport.Yes)]
        public int BrojIzvatka
        {
            get { return _brojizvatka; }
            set { _brojizvatka = value; }
        }

        #region IComparable<Filter> Members

        public int CompareTo(PretvoreneStavkeIzvatka other)
        {
            return Vlasnikziroracun.CompareTo(other.Vlasnikziroracun);
        }

        #endregion
    }


}
